package edu.hgnc.selfEditor2;

import org.springframework.beans.PropertyEditorRegistrar;
import org.springframework.beans.PropertyEditorRegistry;

public class AddressPropertyEditorRegister implements PropertyEditorRegistrar {
	/**
	 * 通过给定的PropertyEditorRegistry注册自定义的PropertyEditors
	 *
	 * @param registry the {@code PropertyEditorRegistry} to register the
	 *                 custom {@code PropertyEditors} with
	 */
	@Override
	public void registerCustomEditors(PropertyEditorRegistry registry) {
		// 注册自定义的编辑器
		registry.registerCustomEditor(Address.class,new AddressPropertyEditor());
	}
}
